Skip to content

Respect precision when set by caller for all numbers#69

Merged
guptarohit merged 3 commits intoguptarohit:masterfrom
cloakd:master
Mar 7, 2026
Merged

Respect precision when set by caller for all numbers#69
guptarohit merged 3 commits intoguptarohit:masterfrom
cloakd:master

Conversation

@cloakd
Copy link
Contributor

@cloakd cloakd commented Oct 15, 2025

Currently, Precision is ignored even if set for numbers > 100

This change ensures that Precision is respected when formatting and is set by user

@coveralls
Copy link

coveralls commented Oct 15, 2025

Pull Request Test Coverage Report for Build 22803152887

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 7 of 7 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 95.674%

Totals Coverage Status
Change from base Build 22798459884: 0.03%
Covered Lines: 376
Relevant Lines: 393

💛 - Coveralls

cloakd and others added 3 commits March 7, 2026 22:18
- TestPrecisionRespectedForLargeNumbers: verifies user-set precision(3)
  works for values >= 100
- TestPrecisionZeroWithLargeNumbers: verifies precision(0) is respected
  for large numbers
- TestPlotPrecisionWithLargeNumbers: verifies precision works in Plot()
- TestPrecisionDefaultAutoCalculation: verifies backward compatibility
@guptarohit guptarohit merged commit 3d829c4 into guptarohit:master Mar 7, 2026
@guptarohit guptarohit mentioned this pull request Mar 8, 2026
guptarohit added a commit that referenced this pull request Mar 8, 2026
## 🤖 I have created a release *beep* *boop*

##
[0.8.0](v0.7.3...v0.8.0)
(2026-03-08)

### Added
- Option to format Y-axis values with `YAxisValueFormatter(...)`
([#58](#58))
- Option to customize plot characters with `SeriesChars(...)` and
`CreateCharSet(...)`
([#70](#70))
- CLI: `-x` flag to specify custom characters, including comma-separated
values for multiple series
([#70](#70))
- Option to configure line endings for raw terminals
([#71](#71))

### Fixed
- Respect caller-specified precision for large numbers
([#69](#69))
- Preserve exact Y-axis values for series with identical data points
([#65](#65)), closes
[#61](#61)
- Prevent panics when legends are set without series colors
([#64](#64))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants